package com.xuan.bigdog.lib.chat.adapter;

import java.util.List;

import android.content.Context;
import android.view.View;
import android.view.ViewGroup;

import com.xuan.bigdog.lib.chat.message.DGMessage;
import com.xuan.bigdog.lib.widgets.adapter.DGBaseAdapter;

/**
 * 消息列表适配器
 * 
 * @author xuan
 */
public class DGChatAdapter extends DGBaseAdapter {
	private final Context context;
	private final List<DGMessage> dataList;

	public DGChatAdapter(Context context, List<DGMessage> dataList) {
		this.context = context;
		this.dataList = dataList;
	}

	@Override
	public int getCount() {
		return dataList.size();
	}

	@Override
	public View getView(int position, View view, ViewGroup viewGroup) {
		return view;
	}

}
